package org.jiuling.aliyun.sms.convert;

import org.jiuling.aliyun.sms.model.ModifySmsTemplateResponseModel;

/**
 * 修改短信模板响应转换
 * @author 紫灵
 * @date 2023年02月13日 17时49分34秒
 */
public class ModifySmsTemplateResponseConvert {

    private ModifySmsTemplateResponseConvert(){}

    /**
     * 内容转模型
     * @param modifySmsTemplateResponseBody 修改短信模板响应内容
     * @return 修改短信模板响应模型
     */
    public static ModifySmsTemplateResponseModel bodyToModel(com.aliyun.sdk.service.dysmsapi20170525.models.ModifySmsTemplateResponseBody modifySmsTemplateResponseBody){
        ModifySmsTemplateResponseModel modifySmsTemplateResponseModel = new ModifySmsTemplateResponseModel();
        modifySmsTemplateResponseModel.setTemplateCode(modifySmsTemplateResponseBody.getTemplateCode());
        modifySmsTemplateResponseModel.setCode(modifySmsTemplateResponseBody.getCode());
        modifySmsTemplateResponseModel.setMessage(modifySmsTemplateResponseBody.getMessage());
        modifySmsTemplateResponseModel.setRequestId(modifySmsTemplateResponseBody.getRequestId());
        return modifySmsTemplateResponseModel;
    }

    /**
     * 内容转模型
     * @param modifySmsTemplateResponseBody 修改短信模板响应内容
     * @return 修改短信模板响应模型
     */
    public static ModifySmsTemplateResponseModel bodyToModel(com.aliyun.dysmsapi20170525.models.ModifySmsTemplateResponseBody modifySmsTemplateResponseBody){
        ModifySmsTemplateResponseModel modifySmsTemplateResponseModel = new ModifySmsTemplateResponseModel();
        modifySmsTemplateResponseModel.setTemplateCode(modifySmsTemplateResponseBody.getTemplateCode());
        modifySmsTemplateResponseModel.setCode(modifySmsTemplateResponseBody.getCode());
        modifySmsTemplateResponseModel.setMessage(modifySmsTemplateResponseBody.getMessage());
        modifySmsTemplateResponseModel.setRequestId(modifySmsTemplateResponseBody.getRequestId());
        return modifySmsTemplateResponseModel;
    }



}
